import 'package:flutter/material.dart';
import 'package:flutter_eve_plugin/constants/font_family.dart';
import 'package:flutter_eve_plugin/utils/image_util.dart';
import 'package:flutter_eve_plugin/utils/screen_util.dart';

class ArchivesCenterTopTitleWidget extends StatelessWidget {
  const ArchivesCenterTopTitleWidget({
    Key key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Positioned(
      left: setRatio(5),
      top: setRatio(-1),
      child: Container(
        width: setRatio(95),
        height: setRatio(26),
        decoration: BoxDecoration(
            image: DecorationImage(
                image: AssetImage(imageUtilYeXiu(
                    'archives/icon_archivers_left_title_bg1@3x')))),
        child: Container(
          padding: EdgeInsets.only(left: setRatio(15), top: setRatio(3)),
          child: Text(
            '等级提升',
            style: TextStyle(
                shadows: [
                  BoxShadow(
                      color: Color(0x47000000),
                      offset: Offset(0, setRatio(2)),
                      blurRadius: setRatio(2))
                ],
                decoration: TextDecoration.none,
                letterSpacing: 1,
                color: Color(0xFFFFFFFF),
                fontFamily: FontFamily.PMZD,
                fontSize: setTextSp(15)),
          ),
        ),
      ),
    );
  }
}
